#! /bin/bash

check=`ls`

redis=$(echo ${check} | grep "redisInstall.sh")
zookeeper=$(echo ${check} | grep "zookeeperInstall.sh")
jdk=$(echo ${check} | grep "jdkInstall.sh")
maven=$(echo ${check} | grep "mavenInstall.sh")

if [[ "$redis" != "" ]]
then
  sed -i "s/\r//" redisInstall.sh
fi

if [[ "$zookeeper" != "" ]]
then
  sed -i "s/\r//" zookeeperInstall.sh
fi

if [[ "$jdk" != "" ]]
then
  sed -i "s/\r//" jdkInstall.sh
fi

if [[ "$maven" != "" ]]
then
  sed -i "s/\r//" mavenInstall.sh
fi
